from public.action import *
from public.business import *
from public.testData import *
from public.tools import *

testCase = "DBshop019_商品管理商品属性属性"

firefox=openBrowser(urlAdmin)

# 打开后台系统网站
firefox.get(urlAdmin)

# 登录后台系统账号
DBshopLoginAdmin(firefox)

# 点击商品管理，商品属性，属性
DBshopEnterMenu3(firefox,"商品管理","商品属性","属性")

# 添加属性
firefox.find_element_by_link_text("添加属性").click()

# 填写基本信息
firefox.find_element_by_xpath("//option[@value='1']").click()
firefox.find_element_by_xpath("//option[@value='select']").click()
firefox.find_element_by_xpath("//input[@class='span6']").send_keys("好好学习")
firefox.find_element_by_xpath("//input[@class='span1']").clear()
firefox.find_element_by_xpath("//input[@class='span1']").send_keys(255)
firefox.find_element_by_xpath("/html/body/div[2]/div/div[2]/div/form/div/div[1]/div[2]/button").click()


